<route lang="json5" type="page">
{
  layout: 'default',
  style: {
    navigationBarTitleText: '二维码',
  },
}
</route>

<template>
  <view class="parent-container">
    <QRCode :orderCode="orderCode"></QRCode>
  </view>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import QRCode from '@/components/QRCode/index.vue'

const orderCode = ref('')

onLoad((options) => {
  orderCode.value = options.orderCode
})
</script>

<style lang="scss" scoped></style>
